package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.UacVolunteer;
import com.csun.cmny.provider.model.dto.volunteer.VolunteerQueryDto;
import com.csun.cmny.provider.model.vo.VolunteerInforVo;
import com.csun.cmny.provider.model.vo.VolunteerVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface UacVolunteerMapper extends Mapper<UacVolunteer> {

    /**
     * 查询志愿者列表
     *
     * @param volunteerQueryDto volunteer query dto
     *
     * @return  the list.
     */
    List<VolunteerVo> queryVolunteerListWithPage(VolunteerQueryDto volunteerQueryDto);

    List<VolunteerVo> queryVolunteerList(Long groupId);
    /**
     * 获取志愿者信息
     *
     * @param volunteerId   志愿者Id
     *
     * @return  志愿者信息
     */
    VolunteerVo getVolunteerByVolunteerId(Long volunteerId);

    /**
     * 根据志愿者Id集合查询志愿者列表
     *
     * @param volunteerIdList volunteer id list
     * @return the list.
     */
    List<VolunteerVo> queryVolunteerListByVolunteerIds(@Param("volunteerIdList") List<Long> volunteerIdList);

    /*
    * 根据userID查询志愿者信息
    * */
    VolunteerVo getVolunteerByUserId(Long userId);

    Integer selectVolunteerCount(Long groupId);
    /*
     * 大数据平台志愿者服务查询
     * */
    List<VolunteerInforVo> selectVolunteerByNurseHome(VolunteerInforVo vo);
}